package io.wdb.modules.generator.generator.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

import io.wdb.modules.generator.generator.dao.StaffProvinceInfoDao;
import io.wdb.modules.generator.generator.entity.StaffProvinceInfoEntity;
import io.wdb.modules.generator.generator.service.StaffProvinceInfoService;



@Service("staffProvinceInfoService")
public class StaffProvinceInfoServiceImpl implements StaffProvinceInfoService {
	@Autowired
	private StaffProvinceInfoDao staffProvinceInfoDao;
	
	@Override
	public StaffProvinceInfoEntity queryObject(Long id){
		return staffProvinceInfoDao.queryObject(id);
	}
	
	@Override
	public List<StaffProvinceInfoEntity> queryList(Map<String, Object> map){
		return staffProvinceInfoDao.queryList(map);
	}
	
	@Override
	public int queryTotal(Map<String, Object> map){
		return staffProvinceInfoDao.queryTotal(map);
	}
	
	@Override
	public void save(StaffProvinceInfoEntity staffProvinceInfo){
		staffProvinceInfoDao.save(staffProvinceInfo);
	}
	
	@Override
	public void update(StaffProvinceInfoEntity staffProvinceInfo){
		staffProvinceInfoDao.update(staffProvinceInfo);
	}
	
	@Override
	public void delete(Long id){
		staffProvinceInfoDao.delete(id);
	}
	
	@Override
	public void deleteBatch(Long[] ids){
		staffProvinceInfoDao.deleteBatch(ids);
	}
	
}
